import request from '@/utils/request'

// 查询交易渠道列表
export function tradingChannelsList(query) {
  return request({
    url: '/config/tradingChannels/list',
    method: 'get',
    params: query
  })
}

// 添加交易渠道
export function tradingChannelsAdd(data) {
  return request({
    url: '/config/tradingChannels/add',
    method: 'POST',
    data: data
  })
}

// 编辑交易渠道
export function tradingChannelsEdit(data) {
  return request({
    url: '/config/tradingChannels/edit',
    method: 'POST',
    data: data
  })
}

// 删除交易渠道列表
export function tradingChannelsDelBatch(data) {
  return request({
    url: '/config/tradingChannels/delBatch',
    method: 'POST',
    data: data
  })
}


// 查询线下收款渠道列表
export function offlineChannelsList(query) {
  return request({
    url: '/config/offlineChannels/list',
    method: 'get',
    params: query
  })
}

// 添加线下收款渠道
export function offlineChannelsAdd(data) {
  return request({
    url: '/config/offlineChannels/add',
    method: 'POST',
    data: data
  })
}

// 编辑线下收款渠道
export function offlineChannelsEdit(data) {
  return request({
    url: '/config/offlineChannels/edit',
    method: 'POST',
    data: data
  })
}

// 删除线下收款渠道列表
export function offlineChannelsDelBatch(data) {
  return request({
    url: '/config/offlineChannels/delBatch',
    method: 'POST',
    data: data
  })
}

